<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link href="../css/style-admin-register-category.css" rel="stylesheet" type="text/css" />
	<link href="../css/style-admin-all.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<jsp:include page="header.jsp" />
	<div class="barra1">
		<jsp:include page="top-bar.jsp" />
	</div>
	<div class="header">
		<div class="height-1-rp">
		<c:if test="${cat.id == null}">
			<form method="POST" action="#" id="form">
		</c:if>
		<c:if test="${cat.id != null}">
			<form method="POST" action="../admin/edit-category.ja?cod=${cat.id}">
		</c:if>
				<table class="table-margin" cellpadding="5">
					<tr height="20"></tr>
					<tr>
						<td>Name:<br><input type="text" size="30" name="name" class="form-style" value="${cat.name}" /></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="submit" value="Send" class="button-style" />
							<c:if test="${cat.id == null}">
								<input id="btnCancelar" type="button" value="Cancel" class="button-style" style="margin-left: 5px"/>
							</c:if>
							<c:if test="${cat.id != null}">
								<input id="btnVoltar" type="button" value="Back" class="button-style" style="margin-left: 5px" onclick="history.back(1)" />
							</c:if>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>